@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">Dashboard</div>

                <div class="card-body">
                    @if (session('status'))
                        <div class="alert alert-success" role="alert">
                            {{ session('status') }}
                        </div>
                    @endif

                    You are logged in!

                    <hr>
                    <div>
                        <p>id >>>> {{ $user->id }}</p>
                        <p>name >>>> {{ $user->name }}</p>
                        <p>email >>>> {{ $user->email }}</p>
                        <p>api_token >>>> {{ $user->api_token }}</p>
                    </div>
                </div>
            </div>

            <div class="card">
                <div class="card-header">分类</div>

                <div class="card-body">
                    <p><a href="/categories">分类列表</a></p>
                </div>
            </div>

            <div class="card">
                <div class="card-header">标签</div>

                <div class="card-body">
                    <p><a href="/tags">标签列表</a></p>
                </div>
            </div>

            <div class="card">
                <div class="card-header">文章</div>

                <div class="card-body">
                    <p><a href="/posts">文章列表</a></p>
                </div>
            </div>

            <div class="card">
                <div class="card-header">评论</div>

                <div class="card-body">
                    <p><a href="/comments">评论列表</a></p>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
